package 牛客;

import java.util.Scanner;

/**
 * @Auther: zhang l
 * @Date: 2022/4/10 - 04 - 10 - 17:01
 * @Description: 牛客
 * @version: 1.0
 */
public class 最小公倍数 {
    public static void main(String[] args) {
        Scanner db= new Scanner(System.in);
            int m= db.nextInt();
        int n=db.nextInt();
               int resout=getcm(m,n);
        System.out.println(resout);
    }
    public  static  int getcm(int m,int n){
        int max=Math.max(m,n);
        int sub=m*n;
        for(int i=max;i<=sub;i++){
            if(i%m==0&&i%n==0){
                return i;

            }
        }
        return  0;
    }

}
